package javaguid.juc;

/**
 * @author study
 * @version 1.0
 * @date 2020/8/9 23:13
 */
public class ThreadLocalDemo02 {
    private static final int HASH_INCREMENT = 0x61c88647;

    public static void main(String[] args) {
        int hashCode = 0;
        for (int i = 0; i < 16; i++) {
            hashCode = i * HASH_INCREMENT;
            int bucket = hashCode & 15;
            System.out.println(i + " 在桶中的位置： " + bucket);
        }
    }
}

